{include file="public/header" /}
</head>
<body>
<div class="wrap js-check-wrap">
    <form class="js-ajax-form"  method="post" action="{:url('UserCenter/index')}">
        <div class="well form-inline margin-top-20" >
            用户名:
            <input type="text" class="form-control" name="email" style="width: 250px;"
                   value="{$params['user_name']|default=''}" placeholder="请输入邮箱">　
            手机号:
            <input type="text" class="form-control" name="phone" style="width: 200px;"
                   value="{$params['phone']|default=''}" placeholder="请输入手机号">　
            邮  箱:
            <input type="text" class="form-control" name="email" style="width: 250px;"
                   value="{$params['email']|default=''}" placeholder="请输入邮箱">　
            <input type="submit" class="btn btn-primary" value="搜索"/>
            <a class="btn btn-danger" href="{:url('UserCenter/index')}">清空</a>
        </div>

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th>ID</th>
                <th>用户名</th>
                <th>用户图像</th>
                <th>手机号</th>
                <th>邮箱</th>
                <th>会员类型</th>
                <th>更新时间</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            {foreach name="list" item="vo"}
            <tr>
                <td>{$vo.user_id}</td>
                <td>{$vo.user_name}</td>
                <td>
                    {empty name="$vo['user_icon']"}
                    <img src="{$static}assets/images/default-thumbnail.png" width="30"/>
                    {else /}
                    <img src="{$vo.user_icon}" width="50"/>
                    {/empty}
                </td>
                <td>
                    {empty name="$vo['user_phone']"}
                        未绑定手机号
                    {else /}
                        {$vo.user_phone}
                    {/empty}
                </td>
                <td>
                    {empty name="$vo['user_email']"}
                        未绑定邮箱
                    {else /}
                        {$vo.user_email}
                    {/empty}
                </td>
                <td>
                    {switch $vo.user_level }
                        {case 0}
                            普通会员
                        {/case}
                        {case 1}
                            <span class="color-red">vip会员</span>
                        {/case}
                    {/switch}
                </td>
                <td>{$vo.user_modify_time}</td>
                <td>{$vo.user_create_time}</td>
                <td>
                    <a href="{:url('UserCenter/edit',array('action' => 'edit', 'id' => $vo['user_id']))}">编辑</a>
                </td>
            </tr>
            {/foreach}
        </table>
        {:$pagination}
    </form>
</div>
</body>
</html>